#include "label.h"
#include "common.h"

Label::Label(QWidget *parent) :
    QLabel(parent)
{
    setFrameShape(QFrame::Panel);
    setFrameShadow(QFrame::Raised);
}

Label::Label(const QString &text, QWidget *parent) :
    QLabel(parent)
{
    setText(text);
    setFrameShape(QFrame::Panel);
    setFrameShadow(QFrame::Raised);
}

void Label::mousePressEvent(QMouseEvent *ev)
{
//    cout << this->text() << endl;
    emit mouseClick(this->text());
}
